<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
<meta name="keywords" content="">
<meta name="description" content="">
    <link href="/Public/Plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="/Public/Plugin/validate/validate.css" rel="stylesheet">
<link href="/Public/Admin/css/common.css" rel="stylesheet">
    <script src="/Public/Common/jquery.min.js"></script>
<script src="/Public/Plugin/bootstrap/js/bootstrap.min.js"></script>
<script src="/Public/Admin/js/common.js"></script>
</head>
<body style="background: lightskyblue;">
<div style="width: 300px;margin: auto;margin-top: 10%;">
    <form class="form-horizontal valid_form" role="form" action="<?php echo U('Public/login');?>" method="post">
        <div class="form-group">
            <div style="text-align: center;margin: auto;font-size: 16px;">后台登录</div>
        </div>
        <div class="form-group">
            <input type="text" name="nickname" class="form-control"placeholder="请输入用户名" autocomplete="off">
        </div>
        <div class="form-group">
            <input type="password" name="password" class="form-control"placeholder="请输入密码">
        </div>
        <div class="form-group">
            <input type="text" name="verify" class="form-control" id="verify" placeholder="请输入验证码" autocomplete="off">
        </div>
        <div class="form-group">
            <img src="<?php echo U('Public/verify');?>" onclick='this.src=this.src+"?";' style="cursor:pointer;border: 1px solid #dcdcdc;border-radius: 5px;"/>
            <button type="button" class="btn btn-default" style="width: 212px;height: 37px;" id="verify_img" onclick="var verify = $(this).closest('.form-group').find('img').attr('src');$(this).closest('.form-group').find('img').attr('src',verify+'?');">换一张</button>
        </div>
        <div class="form-group">
            <button type="submit" id="submit" class="btn btn-default btn-block">登录</button>
        </div>
    </form>
</div>
<script src="/Public/Plugin/validate/validform_v5.3.2.js"></script>
<script src="/Public/Plugin/layer/layer.js"></script>
<script src="/Public/Common/jquery.form.js"></script>
<script src="/Public/Common/create_layer.js"></script>
<script src="/Public/Common/jquery.submit.js"></script>
<link href="/Public/Plugin/kindeditor/themes/default/default.css" rel="stylesheet"/>
<script src="/Public/Plugin/kindeditor/kindeditor.js"></script>
<script src="/Public/Plugin/kindeditor/lang/zh_CN.js"></script>
<script>
    KindEditor.ready(function(K) {
        var editor_image = K.editor({
            allowFileManager : true,
            afterBlur: function () { this.sync(); },
            uploadJson : "<?php echo U('Admin/Upload/index');?>",
            fileManagerJson : "<?php echo U('Admin/Upload/filelist');?>"
        });
        //--上传图片
        K('.upload_image').click(function() {
            var urlinput=$(this).attr('for');
            editor_image.loadPlugin('image', function() {
                editor_image.plugin.imageDialog({
                    showRemote : false,
                    imageUrl : K('#'+urlinput).val(),
                    clickFn : function(url, title, width, height, border, align) {
                        K('#'+urlinput).val(url);
                        editor_image.hideDialog();
                    }
                });
            });
        });
    });
</script>
<script>
    function check_langlage(language) {
        $.ajax({
            type: "GET",
            url: "<?php echo U('switch_language');?>",
            data: { for_language : language}
        }).done(function() {
            window.location.reload();
        });
    }
</script>

</body>
</html>